package com.example.jpademo.controller;


import com.example.jpademo.repository.service.DemoUserService;
import com.example.utils.result.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @ClassName TestController
 * @Description TODO
 * @Author zhangrenhao
 * @Date 2024/7/30 14:03
 */
@RestController
@AllArgsConstructor
public class TestController {



    private DemoUserService demoUserService;


    @GetMapping("testClassByName")
    public R testClass() {
        return R.data(demoUserService.findByName(""));
    }

    @GetMapping("testClassList")
    public R testClassList() {
        return R.data(demoUserService.findAll());
    }
}
